package com.cs.cssupplier.service.impl;


import com.cs.cssupplier.domain.CsDevice;
import com.cs.cssupplier.service.CsDeviceService;
import com.cs.cssupplier.mapper.CsDeviceMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Optional;

/**
* @author admin
* @description 针对表【cs_device(设备信息表)】的数据库操作Service实现
* @createDate 2024-12-21 12:28:08
*/
@Service
public class CsDeviceServiceImpl implements CsDeviceService{
    @Resource
    private CsDeviceMapper mapper;

    @Override
    public CsDevice selectCsDeviceByTid(String tId) {
        return mapper.selectCsDeviceByTid(tId);
    }

    @Override
    public List<CsDevice> selectCsDeviceList(CsDevice csDevice) {
        return mapper.selectCsDeviceList(csDevice);
    }

    @Override
    public Integer selectCsDeviceMaxTid() {
        return mapper.selectCsDeviceMaxTid();
    }

    @Override
    public Integer checkTidExists(String tid) {
        return mapper.checkTidExists(tid);
    }

    @Override
    public int insertCsDevice(CsDevice csDevice) {
        return mapper.insertCsDevice(csDevice);
    }

    @Override
    public int updateCsDevice(CsDevice csDevice) {
        return mapper.updateCsDevice(csDevice);
    }
}




